<?php

namespace Beerus\Modules\Wiki\Actions;

use Encore\Admin\Actions\RowAction;

class GoodsAlbumTop extends RowAction
{
    public $name = '置顶';

    public function dialog()
    {
        $this->confirm('确定置顶操作');
    }

    public function getHandleRoute()
    {
        dump($this->getRow()->id);
//        $parameters = [
//            'api' => $this->getRow()->api,
//            'uid' => $this->getRow()->uid,
//            'action' => ApiCounter::SIGN_TYPE_2DAYS,
//        ];
//        return admin_url('/position/admIndex/clearPositionCache?' . http_build_query($parameters));
    }
}